#pragma once

#include "conf/znx_core_conf.h"
#include "comm/znx_defs.h"
#include "comm/znx_atomic.h"


// process exit flag
extern volatile znx_bool_t      proc_exit;
extern znx_atomic_int64_t       server_conns;
extern znx_atomic_int64_t       client_conns;
extern znx_atomic_int64_t       pending_tasks;  // for test


void znx_proc_init();
void znx_proc_start();
void znx_proc_shutdown();
